class Race :
    def __init__(self,length,time) -> None:
        self.length = length
        self.time   = time
    def __add__(self,other) :
        return Race(self.length + other.length,self.time + other.time)
    def __gt__(self,other) :
        if self.length == other.length :
            return self.time > other.time
        else :
            raise TypeError("无法比较")
    def __eq__(self, other) :
        if self.length == other.length:
            return self.time == other.time
        else :
            raise TypeError("无法比较")
    def __str__(self) :
        return f"赛跑长度:{self.length},时长{self.time}"
if __name__ == "__main__" :
    team1_1 = Race(200,20)
    team1_2 = Race(200,19.7)
    team1   = team1_1 + team1_2
    print(team1)
    team2_1 = Race(200,16.3)
    team2_2 = Race(200,19.7)
    team2   = team2_1 + team2_2
    print(team2)
    if team1 > team2 :
        print("team1 Win")
    elif team1 == team2 :
        print("No Porle Win")
    else :
        print("team2 Win")